textiter: fix bug in _gtk_text_btree_get_iter_at_last_toggle()
authorSébastien Wilmet <sebastien.wilmet@uclouvain.be>
Tue, 22 Sep 2015 12:40:57 +0000 (14:40 +0200)
committerSébastien Wilmet <swilmet@gnome.org>
Wed, 7 Oct 2015 14:41:37 +0000 (16:41 +0200)
commitb23eabbd642a5d4c46a173d5324a76f4cb63c9f7
treeb5c2777cfe2aa37d2aa2e88b979e61b1c5ff82b1
parentd8856f1b61caf5bca71070b5a59812fdd33314b9
textiter: fix bug in _gtk_text_btree_get_iter_at_last_toggle()

If the last tag toggle is the end iter, the function returned the wrong
tag toggle.

This resulted in some bugs where the view wasn't relayout/redrawn
correctly.

The function also always returned TRUE, probably because the return
value is used nowhere. But for consistency with
_gtk_text_btree_get_iter_at_first_toggle(), it's better to keep the
return value, and also because otherwise the function would be wrong (it
doesn't always return a tag toggle, if there is none).

https://bugzilla.gnome.org/show_bug.cgi?id=755413
gtk/gtktextiter.c